package com.cp.admin.modular.user.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 好友详情表
 * </p>
 *
 * @author lkaeiou123
 * @since 2020-08-26
 */
@TableName("user_friend_info")
public class UserFriendInfo extends Model<UserFriendInfo> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 分组id
     */
    @TableField("group_id")
    private Long groupId;
    /**
     * 好友id
     */
    @TableField("friend_id")
    private Long friendId;
    /**
     * 1正常 -1拉黑
     */
    private Integer status;
    /**
     * 0普通 1特别关心
     */
    private Integer special;
    /**
     * 亲密度
     */
    private Integer intimacy;
    /**
     * 添加好友时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getFriendId() {
        return friendId;
    }

    public void setFriendId(Long friendId) {
        this.friendId = friendId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSpecial() {
        return special;
    }

    public void setSpecial(Integer special) {
        this.special = special;
    }

    public Integer getIntimacy() {
        return intimacy;
    }

    public void setIntimacy(Integer intimacy) {
        this.intimacy = intimacy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserFriendInfo{" +
        "id=" + id +
        ", userId=" + userId +
        ", groupId=" + groupId +
        ", friendId=" + friendId +
        ", status=" + status +
        ", special=" + special +
        ", intimacy=" + intimacy +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
